package com.eight.order.controller;

import com.eight.common.vo.Result;
import com.eight.order.pojo.Member;
import com.eight.order.service.MemberService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: qy8-education
 * @description:
 * @author: 郑友民（1460115388@qq.com）
 * @create: 2023-05-27 16:56
 **/
@RestController
@RequestMapping("order/member")
@Api(tags = "订单会员接口类")
public class MemberController {
    @Autowired
    private MemberService memberService;
    @PostMapping("queryAllMemberById/{memberId}")
    @ApiOperation("通过会员ID获取到会员")
    public Result queryAllMemberById(@PathVariable String memberId){
        Member member=memberService.queryAllMemberById(memberId);
        return Result.success(member);
    }
}

